package cn.edu.dz;

public class Person extends Student {
    public void saysorry(){
        super.setStuName("小明");
        //this.setStuName("小明");
        System.out.println("对不起");
    }

    @Override
    public void sayHello() {
        //调用父类的sayHello方法
        super.sayHello();
        System.out.println("我是子类的sayHello方法");
    }
}
